# 定义字典
dict1 = {"name": "张三", "age": 18}
# 定义字典2
dict2 = {"height": 1.88}
dict1.update(dict2)
print(dict1)
# 字典2中如果存字典1的键则被更新，否则被新增